#include "widget.h"
#include "ui_widget.h"
#include "threadpool.h"
#include <thread>
#include <QDebug>
#include <iostream>
using namespace std;
Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);
    cout << "main:" << std::this_thread::get_id() << endl;
    ThreadPool* pool = ThreadPool::getPoolInstance();
    pool->init(3,5);
}

Widget::~Widget()
{
    delete ui;
}
